package com.ORM;

import java.sql.Timestamp;

/**
 * VLeavewordId entity. @author MyEclipse Persistence Tools
 */

public class VLeavewordId implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer admin;
	private String title;
	private String content;
	private Timestamp leaveDate;
	private String answerContent;
	private Timestamp answerDate;
	private Integer memberLevel;
	private Timestamp regDate;
	private Timestamp lastDate;
	private Integer memberId;
	private String memberName;

	// Constructors

	/** default constructor */
	public VLeavewordId() {
	}

	/** minimal constructor */
	public VLeavewordId(Integer id, Integer memberLevel, Integer memberId) {
		this.id = id;
		this.memberLevel = memberLevel;
		this.memberId = memberId;
	}

	/** full constructor */
	public VLeavewordId(Integer id, Integer admin, String title,
			String content, Timestamp leaveDate, String answerContent,
			Timestamp answerDate, Integer memberLevel, Timestamp regDate,
			Timestamp lastDate, Integer memberId, String memberName) {
		this.id = id;
		this.admin = admin;
		this.title = title;
		this.content = content;
		this.leaveDate = leaveDate;
		this.answerContent = answerContent;
		this.answerDate = answerDate;
		this.memberLevel = memberLevel;
		this.regDate = regDate;
		this.lastDate = lastDate;
		this.memberId = memberId;
		this.memberName = memberName;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAdmin() {
		return this.admin;
	}

	public void setAdmin(Integer admin) {
		this.admin = admin;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Timestamp getLeaveDate() {
		return this.leaveDate;
	}

	public void setLeaveDate(Timestamp leaveDate) {
		this.leaveDate = leaveDate;
	}

	public String getAnswerContent() {
		return this.answerContent;
	}

	public void setAnswerContent(String answerContent) {
		this.answerContent = answerContent;
	}

	public Timestamp getAnswerDate() {
		return this.answerDate;
	}

	public void setAnswerDate(Timestamp answerDate) {
		this.answerDate = answerDate;
	}

	public Integer getMemberLevel() {
		return this.memberLevel;
	}

	public void setMemberLevel(Integer memberLevel) {
		this.memberLevel = memberLevel;
	}

	public Timestamp getRegDate() {
		return this.regDate;
	}

	public void setRegDate(Timestamp regDate) {
		this.regDate = regDate;
	}

	public Timestamp getLastDate() {
		return this.lastDate;
	}

	public void setLastDate(Timestamp lastDate) {
		this.lastDate = lastDate;
	}

	public Integer getMemberId() {
		return this.memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public String getMemberName() {
		return this.memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VLeavewordId))
			return false;
		VLeavewordId castOther = (VLeavewordId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getAdmin() == castOther.getAdmin()) || (this
						.getAdmin() != null
						&& castOther.getAdmin() != null && this.getAdmin()
						.equals(castOther.getAdmin())))
				&& ((this.getTitle() == castOther.getTitle()) || (this
						.getTitle() != null
						&& castOther.getTitle() != null && this.getTitle()
						.equals(castOther.getTitle())))
				&& ((this.getContent() == castOther.getContent()) || (this
						.getContent() != null
						&& castOther.getContent() != null && this.getContent()
						.equals(castOther.getContent())))
				&& ((this.getLeaveDate() == castOther.getLeaveDate()) || (this
						.getLeaveDate() != null
						&& castOther.getLeaveDate() != null && this
						.getLeaveDate().equals(castOther.getLeaveDate())))
				&& ((this.getAnswerContent() == castOther.getAnswerContent()) || (this
						.getAnswerContent() != null
						&& castOther.getAnswerContent() != null && this
						.getAnswerContent()
						.equals(castOther.getAnswerContent())))
				&& ((this.getAnswerDate() == castOther.getAnswerDate()) || (this
						.getAnswerDate() != null
						&& castOther.getAnswerDate() != null && this
						.getAnswerDate().equals(castOther.getAnswerDate())))
				&& ((this.getMemberLevel() == castOther.getMemberLevel()) || (this
						.getMemberLevel() != null
						&& castOther.getMemberLevel() != null && this
						.getMemberLevel().equals(castOther.getMemberLevel())))
				&& ((this.getRegDate() == castOther.getRegDate()) || (this
						.getRegDate() != null
						&& castOther.getRegDate() != null && this.getRegDate()
						.equals(castOther.getRegDate())))
				&& ((this.getLastDate() == castOther.getLastDate()) || (this
						.getLastDate() != null
						&& castOther.getLastDate() != null && this
						.getLastDate().equals(castOther.getLastDate())))
				&& ((this.getMemberId() == castOther.getMemberId()) || (this
						.getMemberId() != null
						&& castOther.getMemberId() != null && this
						.getMemberId().equals(castOther.getMemberId())))
				&& ((this.getMemberName() == castOther.getMemberName()) || (this
						.getMemberName() != null
						&& castOther.getMemberName() != null && this
						.getMemberName().equals(castOther.getMemberName())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getAdmin() == null ? 0 : this.getAdmin().hashCode());
		result = 37 * result
				+ (getTitle() == null ? 0 : this.getTitle().hashCode());
		result = 37 * result
				+ (getContent() == null ? 0 : this.getContent().hashCode());
		result = 37 * result
				+ (getLeaveDate() == null ? 0 : this.getLeaveDate().hashCode());
		result = 37
				* result
				+ (getAnswerContent() == null ? 0 : this.getAnswerContent()
						.hashCode());
		result = 37
				* result
				+ (getAnswerDate() == null ? 0 : this.getAnswerDate()
						.hashCode());
		result = 37
				* result
				+ (getMemberLevel() == null ? 0 : this.getMemberLevel()
						.hashCode());
		result = 37 * result
				+ (getRegDate() == null ? 0 : this.getRegDate().hashCode());
		result = 37 * result
				+ (getLastDate() == null ? 0 : this.getLastDate().hashCode());
		result = 37 * result
				+ (getMemberId() == null ? 0 : this.getMemberId().hashCode());
		result = 37
				* result
				+ (getMemberName() == null ? 0 : this.getMemberName()
						.hashCode());
		return result;
	}

}